package com.cv.infra.service.server;

import com.cv.infra.controller.system.server.vo.ServerRespVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 系统/服务器信息业务层接口实现类
 *
 * @author Charles_XDXD
 */
@Service
@Slf4j
public class ServerServiceImpl implements ServerService {
    @Override
    public ServerRespVO getServerInfo() {
        ServerRespVO serverRespVO = new ServerRespVO();

        try {
            serverRespVO.copyTo();
        } catch (Exception e) {
            log.error("获取服务器信息失败: {}", e.getMessage());
            throw new RuntimeException(e);
        }

        return serverRespVO;
    }

}
